/**
 * Setvor project
 */
package setvor.npc.test;

import setvor.npc.NativeClass;

/**
 * @author julatec
 *
 */
public class SympleNativeClass extends NativeClass {

	/**
	 * @param parameters
	 * @throws Exception
	 */
	public SympleNativeClass() throws Exception {
		super();
	}

	/* (non-Javadoc)
	 * @see setvor.npc.NativeClass#nativeFinalize()
	 */
	@Override
	protected native void nativeFinalize() throws Exception;
	
	/* (non-Javadoc)
	 * @see setvor.npc.NativeClass#nativeNew(java.lang.Object[])
	 */
	@Override
	protected native long nativeNew() throws Exception;
	
	public native char upperCase(char c);
	
	public native byte add(byte a, byte b);
	
	public native short add(short a, short b);
	
	public native int add(int a, int b);
	
	public native long add(long a, long b);
	
	public native float add(float a, float b);
	
	public native double add(double a, double b);
	
	public native boolean not(boolean b);
	
	public native String  concant(String a, String b);
	
	public native byte sum(byte[] array);
	
	public native short sum(short[] array);
	
	public native int sum(int[] array);
	
	public native long sum(long[] array);
	
	public native float sum(float[] array);
	
	public native double sum(double[] array);
	
	public native boolean and(boolean[] array);
	
	public static native String[] times(String s, int v);
	
	public static native void nativeLoadClass();

}
